import axios from 'axios'

export default {
	// 获取token
	deptTree(params) {
		return uni.request({
			method: 'get',
			url: 'http://175.44.138.53:1301/wpd-sanming/system/dept/deptTree',
			data: params
		})
	},
	list(params, token) {
		return uni.request({
			method: 'get',
			url: 'http://175.44.138.53:1301/wpd-sanming/system/user/list',
			data: params,
			headers: {
				Authorization: 'Bearer ' + token
			}
		})
	}
}
